#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import patterns

urlpatterns = patterns('documents.views',
                        (r'^$', 'index'),
                        (r'^modulelist/(?P<faculty_id>\d+)/$', 'modulelist'),
                        (r'^module/(?P<module_term_id>\d+)/$', 'module'),
                        #(r'^upload/(?P<upload_id>\d+)/$', 'upload'),
                        (r'^add/faculty/$', 'add_faculty'),
                        (r'^delete/faculty/(?P<faculty_id>\d+)/$', 'delete_faculty'),
                        (r'^add/module/(?P<faculty_id>\d+)/$', 'add_module'),
                        (r'^delete/module/(?P<module_id>\d+)/$', 'delete_module'),
                        (r'^change/module/(?P<module_id>\d+)/$', 'change_module'),
                        (r'^add/module_term/(?P<module_id>\d+)/$', 'add_module_term'),
                        (r'^delete/module_term/(?P<module_term_id>\d+)/$', 'delete_module_term'),
                        (r'^change/module_term/(?P<module_term_id>\d+)/$', 'change_module_term'),
                        (r'^add/module_part/(?P<module_term_id>\d+)/$', 'add_module_part'),
                        (r'^delete/module_part/(?P<module_part_id>\d+)/(?P<module_term_id>\d+)/$', 'delete_module_part'),
                        (r'^change/module_part/(?P<module_part_id>\d+)/(?P<module_term_id>\d+)/$', 'change_module_part'),
						#(r'^add/upload/(?P<document_id>\d+)/$', 'add_upload'),
                        #(r'^delete/upload/(?P<upload_id>\d+)/$', 'delete_upload'),
                        #(r'^change/upload/(?P<upload_id>\d+)/$', 'change_upload'),
                        (r'^add/document/(?P<module_part_id>\d+)/(?P<module_term_id>\d+)/$', 'add_document'),
                        (r'^delete/document/(?P<document_id>\d+)/$', 'delete_document'),
                        (r'^change/document/(?P<document_id>\d+)/$', 'change_document'),
                        #(r'^add/document_upload/(?P<module_part_id>\d+)/(?P<module_term_id>\d+)/$', 'add_document_upload')
                      )